This becomes a problem for more pesky items such as files and database tables, where if you need to modify the state you must be extra careful to cleanup your tracks after the test is completed.
这对于文件和数据库表等麻烦的项目来说成为一个问题,因为在这些情况下,如果您需要修改状态,那么您必须更小心地在测试完成之后进行一些清理操作。
Now there is a very famous problem with this procedure known as the Cartesian circle and I want to draw your attention to the fact that it's not only a problem for Descartes.
有个非常著名的论题是关于认知过程的,称作笛卡尔循环论证,请大家注意,事实上对笛卡尔来说这并不是唯一的问题。
As we saw in the previous section, a huge problem in class design that makes testing difficult is having to initialize all sorts of objects that aren't required for your test.
正如我们在前一节介绍的,造成测试困难的大量类设计问题都集中在初始化各种不需要测试的对象上。
So this is just a heads up for as you start your next problem set.
所以这是给你们开始下个习题集的一点提示。
But just realize as a teaser coming for problem set 1 will be instructions on how to activate your so called cloud account and it's on the CS50 cloud that you'll be writing your programs, compiling your programs, testing your programs, running your websites ultimately.
如果大家觉得难的话,习题集1上有一些说明,教你如何,激活你的云账户,因为你们只有在CS50云上才能编写程序,编译,检测,并最终运行。
应用推荐